package com.cyz.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import com.cyz.mapper.ReserveMapper;
import com.cyz.mapper.TypeMapper;
import com.cyz.mapper.UserMapper;
import com.cyz.pojo.Paging;
import com.cyz.pojo.Reserve;
import com.cyz.pojo.User;
import com.cyz.service.UserService;

/**
 * @author 陈雅珠
 *  用户服务层实现类
 */
@Service("userServiceImpl")
public class UserServiceImpl implements UserService {

	@Resource(name="reserveMapper")
	private ReserveMapper reserveMapper;
	@Resource(name="paging")
	private Paging<Reserve> paging;
	@Resource(name="userMapper")
	private UserMapper userMapper;
	@Resource(name="typeMapper")
	private TypeMapper typeMapper;
	@Override
	public String validate(String idNumber) {
		// TODO Auto-generated method stub
		
		return userMapper.getIdNumberByIdnumber(idNumber);
		
		
	}
	@Override
	public String getPasswordByIdNumber(String idNumber) {
		// TODO Auto-generated method stub
		return userMapper.getIdNumberByIdnumber(idNumber);
		
	}
	@Override
	public User getUserByIdNumber(String idNumber) {
		// TODO Auto-generated method stub
		return userMapper.getUserByIdNumber(idNumber);
	}

}
